<src:DisplayObjectImpl x:Class="AgilePlannerDT.Display.Impl.StoryCardDisplayObjectImpl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:src="clr-namespace:AgilePlannerDT.Display.Impl"
    xmlns:cw="clr-namespace:AgilePlannerDT.Display.CustomWidgets"
    xmlns:vr="clr-namespace:AgilePlannerDT.Display.ValidationRules"
    Height="150" Width="300" BorderThickness="0" BorderBrush="#FF000000" x:Name="storycard">
     
    <Canvas Name="canvas" Width="294" Height="144" >

        <Grid Name="grid" Width="294" Height="144">
            <Grid.RowDefinitions>
                <RowDefinition Height="34" />
                <RowDefinition Height="24" />
                <RowDefinition Height="86*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="72"/>
                <ColumnDefinition Width="38*" />
                <ColumnDefinition Width="43"/>
                <ColumnDefinition Width="29*" />
                <ColumnDefinition Width="57*"/>
                <ColumnDefinition Width="57*"/>
               
            </Grid.ColumnDefinitions>
            
            <TextBox Grid.ColumnSpan="6" Margin="19.2,0,34,3.6" Name="nameTextBox" FontSize="10" VerticalContentAlignment="center" HorizontalContentAlignment="Left" ></TextBox>

            <TextBlock  Background="{Binding Path=Background, ElementName=storycard}" Name="mostlikelyLabel" FontSize="10"  Padding="6" Margin="15.05,0,0,0" Grid.Row="1">Mostlikely:</TextBlock>
            <TextBox Grid.Column="1" Name="mostlikelyTextBox" FontSize="10" VerticalContentAlignment="Center" UndoLimit="-1" Padding="2" Grid.Row="1">
                
            </TextBox>

            <TextBlock  Background="{Binding Path=Background, ElementName=storycard}" Grid.Column="2" Name="actualLabel" FontSize="10" Padding="6" Grid.Row="1">Actual:</TextBlock>
            <TextBox Grid.Column="3" Name="actualTextBox" FontSize="10" VerticalContentAlignment="Center" Padding="2" Grid.Row="1">
                
            </TextBox>

            <!--<TextBlock Background="{Binding Path=Background, ElementName=storycard}" Grid.Column="4" Name="ownerLabel" FontSize="10" VerticalContentAlignment="Center" Padding="6" Grid.Row="1">Owner:</TextBlock>-->
            <ComboBox Grid.Column="5" Name="ownerComboBox" FontSize="10" VerticalContentAlignment="Center" Text="Unassgined"   Padding="2" Grid.Row="1" />
            <ComboBox Grid.Column="4" Name="ownerComboBox_1" FontSize="10" VerticalContentAlignment="Center" Text="Unassigned" Padding="2" Grid.Row="1" />
           
            
            <TextBox Grid.Row="2" Grid.ColumnSpan="6" Name="descriptionTextBox" FontSize="10" AcceptsReturn="True" TextWrapping="Wrap"  Padding="17,2,2,2"></TextBox>
            <InkCanvas Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="6" Name="descriptionInkCanvas" IsHitTestVisible="False" Background="Transparent"/>

            <Grid Grid.RowSpan="3" Grid.ColumnSpan="6" Name="overlay">

                <Button HorizontalAlignment="Left" Width="30" Name="statusButton" Style="{DynamicResource StatusButton}" Panel.ZIndex="1001" FontWeight="Bold" FontSize="10" />
                <cw:ResizerHandle HorizontalAlignment="Right" VerticalAlignment="Bottom" x:Name="resizerHandle" Panel.ZIndex="1000" Grid.Column="2" Height="45" Width="45" />
                <cw:TranslateOnlyArea x:Name="translateOnlyArea" Panel.ZIndex="1000" IsHitTestVisible="False"  HorizontalAlignment="Center"   VerticalAlignment="Center" />
                <TextBlock Name="highlightTextBlock" Foreground="Red" TextAlignment="Center" FontSize="80" IsHitTestVisible="False" Margin="164,84,130,0" Height="0" VerticalAlignment="Top" />
                <Button Style="{DynamicResource RoundButton}" Width="20" Height="20" HorizontalAlignment="Right" VerticalAlignment="center"  Name="handwritingSwitchButton" Foreground="White" FontSize="12" BorderBrush="DarkGray" BorderThickness="3" Background="Blue" Grid.Column="2" Opacity="1" IsHitTestVisible="True"></Button>
               <Button Style="{DynamicResource RoundButton}" Width="20" Height="20" HorizontalAlignment="Right" VerticalAlignment="Bottom"  Name="switchClearButton" Foreground="White" FontSize="12" BorderBrush="DarkGray" BorderThickness="3" Background="Blue" Opacity="1" IsHitTestVisible="True" Margin="0,0,0,41"></Button>

               
                <Button Style="{DynamicResource RoundButton}" Background="{Binding Path=Background, ElementName=storycard}" Height="34" Name="deleteCardButton" Width="34" HorizontalAlignment="Right" VerticalAlignment="Top" Grid.Column="2">
                    <Image Height="18" HorizontalAlignment="Right" Name="image1" VerticalAlignment="Top" Width="18" Source="/AgilePlannerDT;component/Resources/delete.ico" />

                </Button>
                 
            </Grid>

        </Grid>
        <Button  Name="pin" Style="{DynamicResource InvisibleButton}" Margin= "-20,-25" Height="30.4" Width="32.4">
            <Image Stretch="Fill" Source="/Resources/Images/pins/pin_red.png" Height="30.8" Width="31.6" VerticalAlignment="Top" HorizontalAlignment="Left"/>
        </Button>
    </Canvas>
    
</src:DisplayObjectImpl>
